app.service('z-salaryApproval-s', [
    '$rootScope',
    '$z-http',
    'ZModel',
    function ($rootScope, $http, ZModel) {
        var service = {
            getSalaryRequestListByApl: function (data, success, fault) {
                $http.post("salaryRequest/getSalaryRequestListByApl.do", data)
                    .success(function (data) {
                        success(data.success);
                    }).error(function (data) {
                    fault(data);
                });
            },
            saveSalaryApprovalRequestList: function (data, success, fault) {
                $http.post("salaryApproval/saveSalaryApprovalRequestList.do", data)
                    .success(function (data) {
                        success(data.success);
                    }).error(function (data) {
                    fault(data);
                });
            },
            getIsLastPeople: function (data, success, fault) {
                $http.post("salaryApproval/getIsLastPeople.do", data)
                    .success(function (data) {
                        success(data.success);
                    }).error(function (data) {
                    fault(data);
                });
            },
            saveRejectSalary: function (data, success, fault) {
                $http.post("salaryApproval/saveRejectSalary.do", data)
                    .success(function (data) {
                        success(data.success);
                    }).error(function (data) {
                    fault(data);
                });
            },
            // getExportReport : function(data,success,fault) {
            // 	$http.post("salaryRequest/getExportReport.do",data)
            // 	.success(function(data) {
            // 		success(data.success);
            // 	}).error(function(data) {
            // 		fault(data);
            // 	});
            // },
        };
        return service;
    }]);